﻿using Microsoft.AspNetCore.Mvc;

namespace MyBlog.Controllers
{
    public class TestAjaxController : Controller
    {
        [HttpGet]
        public ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public string Index(string s)
        {
            return "验证码错误";
        }

        [HttpGet]
        public ActionResult UploadImgByForm()
        {
            return View();
        }
        [HttpPost]
        public ActionResult UploadImgByForm(IFormFile file)
        {
            return View();
        }
    }
}
